#include <iostream>

using namespace std;

int total(int cal[])
{
	int i = 0, res = 0;
	
	while(i++ < 12)
	{
		res += cal[0];
		cout << "---" << *cal << "---" << endl;
	}
	return res;
}

int main()
{
	int cal[12] {0};
	
 	const char *moth[] {
		"Januray",
		"Febrary",
		"Mach",
		"April",
		"May",
		"Jule",
		"July",
		"Augeust",
		"Septmpber",
		"October",
		"Novenber",
		"December", 
	};
	
	for(int i = 0; i < 12; i++)
	{
		cout << "Enter " << moth[i] << "'s number: "; cin >> cal[i];
	}
	
	cout << "The total number of sold book is: " << total(cal) << endl;
	
	return 0;
}
